package com.carcontrol.rotate.bean;

import android.graphics.Rect;

import java.io.Serializable;

/**
 * bin14对应图标bean2
 * Created by yuanyi on 2020/5/30.
 */
public class AttachView2 implements Serializable {

    public int  iconId;
    public int left;
    public int top;
    public int right;
    public int bottom;
    public int jumpid = -1;
    public int backgrdId;
    public int isReport;
    public int viewType;    //图标类型
    public byte cmdHi;
    public byte cmdLo;
    public int  belongsToPicId;
    public String touchDowncmdStr; //图标按下发出的指令变量地址
    public String touchUpcmdStr;
    public String feedBackAddrStr; //图标接收反馈的指令变量地址
    public Rect iconRect = new Rect(left, top, right, bottom);  //图标触摸区域
    public byte[] iconqj;   //图标未按下背景
    public byte[] iconbj;   //图标按下否背景
    public boolean isfeedBack;  //图标是否按下    true：是；  false：否

    //滑动条专用属性
    public int startMark;   //开始值
    public int endMark; //结束值

    //电压显示专用属性
    public String textColor;   //颜色
    public int textTTF;   //字体
    public int textSize;   //大小
    public int integerPlaces;   //整数位数
    public int decimalDigit;   //小数位数
    public int align;   //左右位数

    //电压指针专用属性
    public int centerX;   //旋转中心x
    public int centerY;   //旋转中心y
    public int startDegree;   //开始角度
    public int endDegree;   //结束角度

    //首页按钮专用属性
    public String cmdStr;   //变量地址
    public String jumpStr;   //初始值
    public int  txtMaxLength;   //文本长度

    public AttachView2(){

    }

    @Override
    public String toString() {
        return iconRect+"==="+iconqj+"==="+iconbj+"==="+isfeedBack+"==="+startMark+"==="+endMark;
    }
}

